\section{handler::event\_\-worker Class Reference}
\label{classhandler_1_1event__worker}\index{handler::event_worker@{handler::event\_\-worker}}
This class calls/dispatches the event\_\-handler-callbacks.  


{\tt \#include $<$event\_\-worker.h$>$}

Inheritance diagram for handler::event\_\-worker::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{classhandler_1_1event__worker}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{event\_\-worker} (boost::weak\_\-ptr$<$ \bf{handler::multicaster} $>$ m, boost::shared\_\-ptr$<$ \bf{network::message\_\-queue} $>$ q)
\begin{CompactList}\small\item\em \doxyref{event\_\-worker}{p.}{classhandler_1_1event__worker} is the constructor of this class \item\end{CompactList}\item 
virtual \bf{$\sim$event\_\-worker} ()\label{classhandler_1_1event__worker_01eb868b4184ef61f2b184dd65649102}

\item 
virtual void \bf{run} ()\label{classhandler_1_1event__worker_062e8ad75e307a5596a2f576e5b5a24e}

\begin{CompactList}\small\item\em run runs the thread. Don't call this directly, use start\_\-thread instead. \item\end{CompactList}\item 
void \bf{set\_\-multicaster} (boost::weak\_\-ptr$<$ \bf{handler::multicaster} $>$ w)
\begin{CompactList}\small\item\em set\_\-multicaster sets a new multicaster \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class calls/dispatches the event\_\-handler-callbacks. 



Definition at line 41 of file event\_\-worker.h.

\subsection{Constructor \& Destructor Documentation}
\index{handler::event_worker@{handler::event\_\-worker}!event_worker@{event\_\-worker}}
\index{event_worker@{event\_\-worker}!handler::event_worker@{handler::event\_\-worker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}handler::event\_\-worker::event\_\-worker (boost::weak\_\-ptr$<$ \bf{handler::multicaster} $>$ {\em m}, boost::shared\_\-ptr$<$ \bf{network::message\_\-queue} $>$ {\em q})\hspace{0.3cm}{\tt  [inline]}}\label{classhandler_1_1event__worker_b1202bd184b971db07fdd29b149438a2}


\doxyref{event\_\-worker}{p.}{classhandler_1_1event__worker} is the constructor of this class 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em m}]is a multicaster, at which the event\_\-handlers registers themselves. \item[{\em q}]is the message\_\-queue, into which the events are inserted by the receiver and connection\_\-listener classes. \end{description}
\end{Desc}


Definition at line 51 of file event\_\-worker.h.

\begin{Code}\begin{verbatim}53                 :_dispatcher(m), _queue(q) {}
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{handler::event_worker@{handler::event\_\-worker}!set_multicaster@{set\_\-multicaster}}
\index{set_multicaster@{set\_\-multicaster}!handler::event_worker@{handler::event\_\-worker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void handler::event\_\-worker::set\_\-multicaster (boost::weak\_\-ptr$<$ \bf{handler::multicaster} $>$ {\em w})\hspace{0.3cm}{\tt  [inline]}}\label{classhandler_1_1event__worker_edf2c0fb53b8168ab0e44bbcbbaa2c66}


set\_\-multicaster sets a new multicaster 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em w}]is the new multicaster. \end{description}
\end{Desc}


Definition at line 66 of file event\_\-worker.h.

\begin{Code}\begin{verbatim}67                 {
68                         _dispatcher = w;
69                 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
handler/event\_\-worker.h\item 
handler/event\_\-worker.cpp\end{CompactItemize}
